* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

.page-layout {
    display: flex;
    height: 100vh;
}

/* 工具面板 */
.tool-panel {
    background: linear-gradient(135deg, #e3f2fd, #fce4ec);
    padding: 20px;
    width: 320px;
    overflow-y: auto;
    border-right: 1px solid #ccc;
}

.tool-panel h2,
.tool-panel h3 {
    margin-top: 15px;
    font-size: 1rem;
    color: #333;
}

/* 表格样式 */
.status-table,
.log-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.status-table th,
.status-table td,
.log-table th,
.log-table td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.status-table tr:nth-child(even),
.log-table tr:nth-child(even) {
    background-color: #fafafa;
}

/* 控制面板按钮 */
.control-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.btn {
    padding: 10px;
    background-color: #9c27b0;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background-color: #8e24aa;
}

/* 场景列表 */
.vr-scenes li {
    list-style-type: none;
    margin-top: 6px;
}

.vr-scenes a {
    color: #0d47a1;
    text-decoration: none;
}

/* 工作区：主内容 */
.workspace {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #fff;
}

/* 实时图表占位 */
.chart-placeholder {
    width: 100%;
    max-width: 960px;
    height: 300px;
    background-color: #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    margin-bottom: 20px;
}

/* 使用记录表格 */
.log-table {
    width: 100%;
    border-collapse: collapse;
}

/* 侧边栏 */
.side-panel {
    width: 240px;
    background: #f8f8f8;
    padding: 20px;
    border-left: 1px solid #ccc;
    overflow-y: auto;
}

.quick-actions h3,
.notifications h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.action-list li,
.notify-list li {
    list-style-type: none;
    margin-top: 8px;
}

.action-btn {
    display: block;
    padding: 8px 10px;
    background-color: #607d8b;
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.action-btn:hover {
    background-color: #546e7a;
}
/* 新建设备按钮 */
.add-device-btn {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #2e7d32;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.add-device-btn:hover {
    background-color: #1b5e20;
}